home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / AppleSearch / Windows / AppleSearch for Windows SDK / H / NPNEWSUT.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-25  |  3.3 KB  |  113 lines  |  [TEXT/dosa]

  1. /*
  2.     File:        NPNewspaperUtilities.h
  3.  
  4.     Copyright (C) 1992-1995 Apple Computer, Inc.  All rights reserved.
  5.  
  6.     Change History (most recent first):
  7.  
  8.         <9+>      8/8/93    KAZU        added header
  9. */
  10. /*===============================================================================================================
  11.  
  12.         ASUpdateFileUtilities.h
  13.     
  14.           Copyright Apple Computer, Inc. 1992-1995
  15.         All rights reserved
  16.  
  17. ===============================================================================================================*/
  18.  
  19. #ifndef __NPNEWSPAPERUTILITIES__
  20. #define __NPNEWSPAPERUTILITIES__
  21.  
  22. //_______________________________________________________________________________________________________________
  23. //____________________________________________________ INCLUDES _________________________________________________
  24. //_______________________________________________________________________________________________________________
  25.  
  26. #if defined(MACINTOSH)
  27.  
  28. #include <Files.h>
  29.  
  30. #ifndef __NPTYPES__
  31. #include "NPTypes.h"
  32. #endif                                                
  33.  
  34. #ifndef __NPCONSTANTS__
  35. #include "NPConstants.h"
  36. #endif                                                
  37.  
  38. #endif //MACINTOSH
  39.  
  40. #if defined(WINDOWS)
  41.  
  42. #if !defined __WINDOWS_H
  43. #include "windows.h" // need LPCSTR def
  44. #endif
  45.  
  46. #ifndef __NPTYPES__
  47. #include "NPTypes.h"
  48. #endif                                                
  49.  
  50. #ifndef __NPCONSTANTS__
  51. #include "NPConst.h"
  52. #endif                                                
  53.  
  54. #endif // WINDOWS
  55.  
  56. //_______________________________________________________________________________________________________________
  57. //_____________________________________________________ STRUCTS _________________________________________________
  58. //_______________________________________________________________________________________________________________
  59.  
  60. struct ASUUpdateInfo {
  61.     ASUType        updateType;
  62.     long        updateVersion;
  63. };
  64.  
  65. //typedef struct ASUUpdateInfo ASUUpdateInfo, *ASUUpdateInfoPtr;
  66.  
  67. //_______________________________________________________________________________________________________________
  68. //_______________________________________________ FUNCTION PROTOTYPES ___________________________________________
  69. //_______________________________________________________________________________________________________________
  70. #ifdef __cplusplus
  71. extern "C" {
  72. #endif
  73.  
  74. // Update file management
  75.  
  76. #if defined(MACINTOSH)
  77.  
  78. OSErr    ASUCreateUpdateFile( FSSpec* file, OSType creator, ASUType type, long version );
  79. OSErr    ASUOpenUpdateFile( FSSpec* file, short* refnum );
  80.  
  81. #endif //MACINTOSH
  82.  
  83. #if defined(WINDOWS)
  84.  
  85. OSErr pascal    ASUCreateUpdateFile( LPCSTR filePath, ASUType type, long version );
  86. OSErr pascal    ASUOpenUpdateFile( LPCSTR filePath, HFILE* refnum );
  87.  
  88. #endif //WINDOWS
  89.  
  90. OSErr pascal    ASUCloseUpdateFile( short refnum );
  91.  
  92. OSErr pascal    ASUCompactUpdateFile( short refnum );
  93.  
  94. //_______________________________________________________________________________________________________________
  95. // Accessing newspaper info
  96.  
  97. OSErr pascal    ASUReadUpdateInfo( short refnum, ASUUpdateInfo* header );
  98. OSErr pascal    ASUWriteUpdateInfo( short refnum, ASUUpdateInfo* header );
  99.  
  100. //_______________________________________________________________________________________________________________
  101.  
  102. #ifdef __cplusplus
  103. }
  104. #endif
  105.  
  106. #endif                                                            // __NPNEWSPAPERUTILITIES__
  107.  
  108. //
  109. // $Log: /bogart/asu/shared/NPNEWSUT.H $
  110. // 
  111. // 3     5/26/94 11:24a John_fearnside
  112. //
  113.